﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using PcProject.Domain.Models.Entities;
using PcProject.Application.Service.AutoMapper;

namespace PcProject.Application.Service.Products
{
    public interface IProCateService
    {
        /// <summary>
        /// 显示+分页+查询
        /// </summary>
        /// <param name="pname">查询参数</param>
        /// <param name="pageIndex">页数</param>
        /// <param name="pageSize">条数</param>
        /// <param name="totalCount">总条数</param>
        /// <returns></returns>
        List<ProductCategory> GetProCatesAsync(/*int pageIndex, int pageSize, out int totalCount*/);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="obj">表单参数</param>
        /// <returns></returns>
        Task<int> InsertAsync(ProductCategoryDto obj);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<int> DeleAsync(int id);

        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<ProductCategory> FillAsync(int id);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="obj">表单参数</param>
        /// <returns></returns>
        Task<int> UptAsync(ProductCategoryDto obj);

    }
}
